home *** CD-ROM | disk | FTP | other *** search
/ The Genius of Edison / The Genius of Edison (Version 1.0)(Softkey Multimedia)(GOE744AE-CD)(1996).ISO / pc / data / shared.cst / 00071_Script_WAITTICKS < prev    next >
Text File  |  1996-09-03  |  754b  |  27 lines

  1. -- -----------------------------------------------------------
  2. -- Handler waitTicksProcessFrame performs a delay by waiting until the given
  3. -- number of ticks passes. It also processes the frame.
  4.  
  5. on waitTicksProcessFrame howMany
  6.   put the ticks into startTicks
  7.   
  8.   repeat while the ticks < startTicks + howMany
  9.     processFrame  
  10.   end repeat  
  11. end
  12.  
  13. -- -----------------------------------------------------------
  14. -- Handler waitTicksNoProcess performs a delay by waiting until the given
  15. -- number of ticks passes and does not process the frame.
  16.  
  17. on waitTicksNoProcess howMany
  18.   put the ticks into startTicks
  19.   
  20.   repeat while the ticks < startTicks + howMany
  21.     if the mouseDown then 
  22.       exit
  23.     end if
  24.   end repeat
  25. end
  26.  
  27.